package com.atmc.service.impl;

import com.atmc.entity.User;
import com.atmc.mapper.UserMapper;
import com.atmc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    public User selectOne(String userName) {
        return userMapper.selectOne(userName);
    }

    @Override
    public User selectOneById(Long user_id) {
        return userMapper.selectOneById(user_id);
    }

    @Override
    public int insertOne(User user) {
        return userMapper.insertOne(user);
    }

    @Override
    public int updateOne(User user) {
        return userMapper.updateOne(user);
    }
}
